package Month11.Day11;

public class Member {
    private String name;
    private String ID;
    private String phoneNumber;
    private int integral;//积分
    private String password;
    private String cardOpeningTime;

    public Member() {
    }

    public Member(String name, String ID, String phoneNumber, int integral, String password,String cardOpeningTime) {
        this.name = name;
        this.ID = ID;
        this.phoneNumber = phoneNumber;
        this.integral = integral;
        this.password = password;
       this.cardOpeningTime=cardOpeningTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getID() {
        return ID;
    }

    public void setID(String ID) {
        this.ID = ID;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public int getIntegral() {
        return integral;
    }

    public void setIntegral(int integral) {
        this.integral = integral;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getCardOpeningTime() {
        return cardOpeningTime;
    }

    public void setCardOpeningTime(String cardOpeningTime) {
        cardOpeningTime = cardOpeningTime;
    }
    public void show(){
        System.out.println("会员的姓名为:"+name+",手机号为:"+phoneNumber+",卡号为:"+ID+",卡的密码为:"+password+
                ",开卡时间为:"+cardOpeningTime+",卡的积分为:"+integral);
    }

    @Override
    public String toString() {
        return "Member{" +
                "name='" + name + '\'' +
                ", ID='" + ID + '\'' +
                ", phoneNumber='" + phoneNumber + '\'' +
                ", integral=" + integral +
                ", password='" + password + '\'' +
                ", cardOpeningTime=" + cardOpeningTime +
                '}';
    }
}
